package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the projet database table.
 * 
 */
@Entity
public class Projet implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="projet_id")
	private int projetId;

	@Column(name="projet_budgetprev")
	private float projetBudgetprev;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="projet_datedebut")
	private Date projetDatedebut;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="projet_datefin")
	private Date projetDatefin;

	@Column(name="projet_description")
	private String projetDescription;

	@Column(name="projet_nom")
	private String projetNom;

	//bi-directional many-to-one association to Activite
	@OneToMany(mappedBy="projet")
	private List<Activite> activites;

	//bi-directional many-to-one association to Conversation
	@OneToMany(mappedBy="projet")
	private List<Conversation> conversations;

	public Projet() {
	}

	public int getProjetId() {
		return this.projetId;
	}

	public void setProjetId(int projetId) {
		this.projetId = projetId;
	}

	public float getProjetBudgetprev() {
		return this.projetBudgetprev;
	}

	public void setProjetBudgetprev(float projetBudgetprev) {
		this.projetBudgetprev = projetBudgetprev;
	}

	public Date getProjetDatedebut() {
		return this.projetDatedebut;
	}

	public void setProjetDatedebut(Date projetDatedebut) {
		this.projetDatedebut = projetDatedebut;
	}

	public Date getProjetDatefin() {
		return this.projetDatefin;
	}

	public void setProjetDatefin(Date projetDatefin) {
		this.projetDatefin = projetDatefin;
	}

	public String getProjetDescription() {
		return this.projetDescription;
	}

	public void setProjetDescription(String projetDescription) {
		this.projetDescription = projetDescription;
	}

	public String getProjetNom() {
		return this.projetNom;
	}

	public void setProjetNom(String projetNom) {
		this.projetNom = projetNom;
	}

	public List<Activite> getActivites() {
		return this.activites;
	}

	public void setActivites(List<Activite> activites) {
		this.activites = activites;
	}

	public List<Conversation> getConversations() {
		return this.conversations;
	}

	public void setConversations(List<Conversation> conversations) {
		this.conversations = conversations;
	}

}